function register(name: string):void {
    console.log(`注册用户：${name}`);
}

register('小明');